﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true"
    CodeBehind="RecordShow.aspx.cs" Inherits="EDMS.RecordShow" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <%--　window.open 弹出新窗口的命令；
　　'page.html' 弹出窗口的文件名；
　　'newwindow' 弹出窗口的名字（不是文件名），非必须，可用空''代替；
　　height=100 窗口高度；
　　width=400 窗口宽度；
　　top=0 窗口距离屏幕上方的象素值；
　　left=0 窗口距离屏幕左侧的象素值；
　　toolbar=no 是否显示工具栏，yes为显示；
　　menubar，scrollbars 表示菜单栏和滚动栏。
　　resizable=no 是否允许改变窗口大小，yes为允许；
　　location=no 是否显示地址栏，yes为允许；
　　status=no 是否显示状态栏内的信息（通常是文件已经打开），yes为允许； --%>
    <style type="text/css">
        .ctlp
        {
            border: 0 solid #333333;
            height: 28px;
            padding: 2px 0;
            text-align: left;
            width: auto;
        }
    </style>
    <script language="javascript" type="text/javascript">
        function OnGridFocusedRowChanged() {
            gvQuery.GetRowValues(gvQuery.GetFocusedRowIndex(), 'jlbh;xjbh', OnGetRowValues);
        }

        function OnGetRowValues(values) {
            if (values != "") {
                sl.SetText(values[0]);
                hf.SetText(values[0]);
            }
        }
    </script>
    <h1 class="DemoTitle">
        委托记录管理
    </h1>
    <div style="display: none">
        <dx:ASPxTextBox ID="txtsl" runat="server" ClientInstanceName="sl" Width="170px">
        </dx:ASPxTextBox>
        <dx:ASPxTextBox ID="txthf" runat="server" Width="170px" ClientInstanceName="hf">
        </dx:ASPxTextBox>
    </div>
    <div id="DemoArea" style="width: 1000px">
        <div class="Spacer" style="height: 14px;">
        </div>
        <table width="200">
            <tr>
                <td style="width: 45%">
                    <img style="cursor: pointer;" width="70" height="70" alt="电话委托" title="电话委托" src="../../Images/easyicon.png"
                        onclick="window.open('RecordManagers.aspx','','width=920,height=430,top=200,left=300,toolbar =no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no')">
                </td>
                <td style="width: 60%; color: Blue;">
                    <a style="cursor: pointer;" onclick="window.open('RecordManagers.aspx','','width=920,height=430,top=200,left=300,toolbar =no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no')">
                        <font style="font-size:9pt; color:Blue;">电话委托</font> </a>
                </td>
            </tr>
        </table>
        <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" Height="77px"
            HeaderText="委托数据管理事项" CssFilePath="~/App_Themes/Office2010Silver/{0}/styles.css"
            CssPostfix="Office2010Silver" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
            GroupBoxCaptionOffsetY="-19px" SpriteCssFilePath="~/App_Themes/Office2010Silver/{0}/sprite.css">
            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
            <ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" PaddingBottom="10px">
            </ContentPaddings>
            <HeaderStyle>
                <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                <Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px">
                </Paddings>
            </HeaderStyle>
            <PanelCollection>
                <dx:PanelContent>
                    <table cellpadding="0" cellspacing="0" style="margin-bottom: 16px; width: 600px;">
                        <tr>
                            <td align="left" style="padding-right: 4px; width: 10%; text-align: left;">
                                <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="待受理：">
                                </dx:ASPxLabel>
                            </td>
                            <td style="padding-right: 4px; width: 10%;">
                                <asp:LinkButton ID="lbtnSlYes" runat="server" OnClick="lbtnSlYes_Click" Style="cursor: pointer;">LinkButton</asp:LinkButton>
                            </td>
                            <td align="left" style="padding-right: 4px; width: 10%; text-align: left;">
                                <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="待回访：">
                                </dx:ASPxLabel>
                            </td>
                            <td style="padding-right: 4px; width: 10%;">
                                <asp:LinkButton ID="lbtnHfNo" runat="server" OnClick="lbtnHfNo_Click" Style="cursor: pointer;">LinkButton</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="padding-right: 4px; width: 10%; text-align: left;">
                                <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text="受理失败：">
                                </dx:ASPxLabel>
                            </td>
                            <td style="padding-right: 4px; width: 10%;">
                                <asp:LinkButton ID="lbtnSlNo" runat="server" OnClick="lbtnSlNo_Click" Style="cursor: pointer;">LinkButton</asp:LinkButton>
                            </td>
                             <td align="left" style="padding-right: 4px; width: 10%; text-align: left;">
                                <dx:ASPxLabel ID="ASPxLabel9" runat="server" Text="已回访：">
                                </dx:ASPxLabel>
                            </td>
                            <td style="padding-right: 4px; width: 10%;">
                                <asp:LinkButton ID="lbtnHfYes" runat="server" Style="cursor: pointer;" OnClick="lbtnHfYes_Click">LinkButton</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td align="left"  style="padding-right: 4px; width: 10%; text-align: left;">
                                <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="受理成功：">
                                </dx:ASPxLabel>
                            </td>
                            <td colspan="3" style="padding-right: 4px; width: 10%;">
                                <asp:LinkButton ID="lbtnSlCg" runat="server" Style="cursor: pointer;" OnClick="lbtnSlCg_Click">LinkButton</asp:LinkButton>
                            </td>
                           
                        </tr>
                    </table>
                    <table cellpadding="0" cellspacing="0" style="margin-bottom: 16px; width: 100%">
                        <tbody>
                            <tr>
                             <td style="width: 8%">
                                    <label>
                                        委托方式：</label>
                                </td>
                                <td style="width: 19%">
                                    <dx:ASPxComboBox ID="cmdflag" runat="server" 
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue" Spacing="0" 
                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        <Items>
                                            <dx:ListEditItem Text="电话委托" Value="D" />
                                            <dx:ListEditItem Text="网站委托" Value="W" />
                                            <dx:ListEditItem Text="短信委托" Value="X" />
                                        </Items>
                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                        </LoadingPanelImage>
                                        <LoadingPanelStyle ImageSpacing="5px">
                                        </LoadingPanelStyle>
                                        <ButtonStyle Width="13px">
                                        </ButtonStyle>
                                    </dx:ASPxComboBox> 
                                </td>
                                <td style="width: 10%">
                                    <label>
                                        委托人姓名：</label>
                                </td>
                                <td style="width: 15%">
                                    <dx:ASPxTextBox ID="wtName" NullText="请输入委托人姓名" runat="server" ClientInstanceName="username">
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 10%">
                                    <label>
                                        被委托人姓名：</label>
                                </td>
                                <td style="width: 15%">
                                    <dx:ASPxTextBox ID="bwtName" runat="server" ClientInstanceName="idcard" NullText="请输入被委托人姓名">
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="text-align: left; width: 6%;">
                                    <dx:ASPxButton ID="btnSearch" runat="server" AutoPostBack="False" ClientInstanceName="search_name"
                                        CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                                        Text="查询">
                                        <ClientSideEvents Click="function(s,e){gvQuery.PerformCallback(); }" />
                                        <ClientSideEvents Click="function(s,e){gvQuery.PerformCallback(); }"></ClientSideEvents>
                                    </dx:ASPxButton>
                                </td>
                                <td style="text-align: left; width: 10%;">
                                    <dx:ASPxButton ID="btnClear" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                                        CssPostfix="Youthful" OnClick="btnClear_Click" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                                        Text="清除过滤">
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                    <dx:ASPxButton ID="btnreflsh" runat="server" Text="刷新" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                                        OnClick="btnreflsh_Click">
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>
        <dx:ASPxGridView ID="gvShow" runat="server" Width="1000px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" AutoGenerateColumns="False" ClientInstanceName="gvQuery"
            OnCustomCallback="gvShow_CustomCallback">
            <ClientSideEvents FocusedRowChanged="function(s, e) { OnGridFocusedRowChanged(); }" />
            <Columns>
                <dx:GridViewDataComboBoxColumn Caption="委托状态" FieldName="flag" VisibleIndex="0" Width="87px">
                    <PropertiesComboBox Spacing="0" ValueType="System.String">
                        <Items>
                            <dx:ListEditItem Text="成功" Value="9" ImageUrl="~/Images/successs.png" />
                            <dx:ListEditItem Text="待定" Value="1" ImageUrl="~/Images/waitings.png" />
                            <dx:ListEditItem Text="失败" Value="0" ImageUrl="~/Images/fails.png" />
                        </Items>
                    </PropertiesComboBox>
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn Caption="委托人(联系方式)" FieldName="wtrmobile" VisibleIndex="1"
                    Width="110px">
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="委托人(姓名)" FieldName="wtname" VisibleIndex="2"
                    Width="85px">
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="委托人(身份证号码)" FieldName="wtrsfzh" VisibleIndex="3"
                    Width="153px">
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="被委托人(姓名)" FieldName="bwtname" VisibleIndex="4"
                    Width="95px">
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="被委托人(身份证号码)" FieldName="bwtrsfzh" VisibleIndex="5"
                    Width="153px">
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="委托发生日期" FieldName="fstime" VisibleIndex="6">
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn Caption="委托方式" VisibleIndex="7" Width="85px" 
                    FieldName="wtfs">
                    <PropertiesComboBox Spacing="0" ValueType="System.String">
                        <Items>
                            <dx:ListEditItem Text="电话委托" Value="D" />
                            <dx:ListEditItem Text="短信委托" Value="X" />
                            <dx:ListEditItem Text="网站委托" Value="W" />
                        </Items>
                    </PropertiesComboBox>
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn Caption="验证码" FieldName="yzm" VisibleIndex="8" Width="70px">
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="委托书打印时间" FieldName="wtsdytime" VisibleIndex="9">
                    <PropertiesTextEdit EncodeHtml="False">
                    </PropertiesTextEdit>
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="操作" VisibleIndex="10" Width="256px">
                    <DataItemTemplate>
                        <div style="width: 100%; float: left;">
                            <div style="width: 30%; text-align: left; float: left;">
                                <a id="asl" onclick="window.open('RecordAccepts.aspx?id=<%#Eval("jlbh") %>','','width=920,height=550,top=200,left=250,toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')">
                                    <dx:ASPxButton ID="linksl" runat="server" Text="委托受理" AutoPostBack="False" Width="75px"
                                        CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                    </dx:ASPxButton>
                                </a>
                            </div>
                            <div style="width: 30%; text-align: left; float: left;">
                                <a id="a1" onclick="window.open('RecordReturns.aspx?id=<%#Eval("jlbh") %>','','width=920,height=650,top=150,left=250,toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')">
                                    <dx:ASPxButton ID="linkhf" runat="server" Text="委托回访" AutoPostBack="False" Width="75px"
                                        CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                    </dx:ASPxButton>
                                </a>
                            </div>
                             <div style="width: 30%; text-align: left; float: left;">
                                <a id="a2">
                                    <dx:ASPxButton ID="ASPxButton1" runat="server" Text="短信记录" AutoPostBack="False" Width="75px"
                                        CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                    </dx:ASPxButton>
                                </a>
                            </div>
                        </div>
                    </DataItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsBehavior AllowFocusedRow="True" AllowDragDrop="False" 
                AllowGroup="False" AllowSort="False" />
            <SettingsPager PageSize="8" SEOFriendly="Enabled">
            </SettingsPager>
            <Settings ShowHorizontalScrollBar="True" />
            <SettingsText EmptyDataRow="没有记录" />
            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <StylesPager>
                <PageNumber ForeColor="#3E4846">
                </PageNumber>
                <Summary ForeColor="#1E395B">
                </Summary>
            </StylesPager>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
        </dx:ASPxGridView>
    </div>
</asp:Content>
